home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / simplesprite.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.3 KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ASimpleSprite wrapper class                                               *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_SimpleSprite_H
  12. #define ASAP_SimpleSprite_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Graphics.h>
  17. }
  18.  
  19. class ASimpleSprite : public SimpleSprite
  20. {
  21.  public:
  22.  inline WORD GetSprite(/* SimpleSprite *sprite, */long number = -1);
  23.  inline void FreeSprite();
  24. };
  25. //-----------------------------------------------------------------------------
  26. WORD ASimpleSprite::GetSprite (long number)
  27. {
  28.  return ::GetSprite(this, number);
  29. }
  30. //-----------------------------------------------------------------------------
  31. void ASimpleSprite::FreeSprite ()
  32. {
  33.  ::FreeSprite(num);
  34. }
  35.  
  36. #endif
  37.